Full Screen Background Image with HTML CSS | Responsive Full Page Background Image CSS

Поделиться
HTML-код
  • Опубликовано: 15 янв 2025

Комментарии • 276

  • @dejihassan5573
    @dejihassan5573 2 года назад +53

    never seen a video so short,concise and straight to the point like this ever .Thank You!!

    • @bopatzable
      @bopatzable 2 года назад +1

      fully agree. this video is really helpful.

  • @raves_r3177
    @raves_r3177 3 года назад +55

    I dont usually leave a comment but I feel like I have to in this video because you have helped me a lot. I have a web design project due a few days from now but I have no idea how to do a full screen image. You sir, just saved my grade. Thank you very much for this video and for the patience of explaining what a "vh" is. Your quality of teaching and content is worth a million subs. Again, thank you very much. Subscribed.

    • @cemeygimedia
      @cemeygimedia  3 года назад +4

      Glad I could help! Thank you for your nice thoughts 👍

    • @worldlyjourney
      @worldlyjourney 2 года назад

      You are right. After watching this video, I decided to watch another video from a different RUclipsr to compare the. Explanation. But I came back to this account to watch all his videos. You explain things in a simple and meaningful way. It Is hard for me to leave a comment but today I did

  • @nataliestepp5916
    @nataliestepp5916 2 года назад +7

    I've been struggling for 2 hours trying to research how to do this! Thank you so much for posting this!

  • @LisekGG
    @LisekGG 2 года назад +237

    Pro tip: If you want the image to be centered vertically and horizontally add line: *background-position: center center;*

  • @Disciple1963
    @Disciple1963 2 года назад +2

    As a non-native English speaker I'd like to point out your great English pronunciation and thanks a million for it!
    And also thanks a lot for extremily clear explanation of the subject!
    Like and subscribe!

  • @clauclaudia6855
    @clauclaudia6855 2 года назад +4

    Wowww, thanks a lot , I had around 5h watching videos and I didn't manage to change the size of the img, and with 5 min your video I manage to do it XD, great explanation!!

  • @thebrainykids
    @thebrainykids Год назад

    Exceptional Turkish accent. Lovely. Thanks for this !!!

  • @Memes4eva_4u
    @Memes4eva_4u Год назад

    the other vids had repeating background. THIS IS PERFECT! tysm!

  • @seandorig1955
    @seandorig1955 Год назад +3

    Thank me later! (I know is pissing when someone doesnt put the code in description so i made here just copy it :D )
    {
    margin: 0;
    padding: 0;
    }
    .background-image {
    background-image: "source";
    background-size: cover;
    background-repeat: no-repeat;
    width: 200px;
    height: 100vh;
    }

    • @S_K_Michael1
      @S_K_Michael1 4 месяца назад

      Take the width out please

  • @leahlilyrose
    @leahlilyrose 2 года назад +1

    Omg THANK YOU SO MUCH MAN! I have a project and the background image was irritating me 😭 you are a life saver, you earned a sub!

  • @feality8697
    @feality8697 Год назад +1

    This guy is the key! This is what I was looking for! straight to the point

  • @abbosshodiev1699
    @abbosshodiev1699 Год назад +1

    Straight-to-the-point tutorial. Good job!

  • @overdrive112
    @overdrive112 Год назад +2

    already the first step with the link wont work for me

  • @mikson6905
    @mikson6905 Год назад

    Thank you mister Cem Eygi, you saved my life

  • @Chiby
    @Chiby 2 года назад

    Thanks man you just solved a 3days problem for me under 5mins

  • @JenniferPerez-no7ih
    @JenniferPerez-no7ih Год назад

    Hi cem, from London, I must said that i start doing a webite, and i was struggling to find out how to cover the full page of the background with an Img, and your video just fixed my problems!!! Thank you :)

  • @alizabatool1928
    @alizabatool1928 2 года назад

    i never understood from yt how to adjUst bgimg not even commented on someone channels
    but i make it easy sir THANK YOU SIR! LOTS OF BLESSINGS FOR YOY SIR FROM PAKISTAN !

  • @treazz6868
    @treazz6868 2 года назад +1

    Çok yardımcı oldun reis. Abimsin sevgiler...

  • @onyegbulegodson168
    @onyegbulegodson168 2 года назад

    Thank you man
    This took me hours to figure out

  • @vkmuffins
    @vkmuffins Год назад

    My head was about to burst until I found ur video 😖😖
    Thanks thanks thanks a million times !!!!!!

  • @ananyamitra8717
    @ananyamitra8717 Год назад

    I don't usually leave any comment but had to say this....thank you so much u made the perfect time saving straight to the point video ❤️

  • @boriztsuyoshi9480
    @boriztsuyoshi9480 2 года назад

    Thank you i was searching for this syntax for like forever

  • @sonubhardwaj9284
    @sonubhardwaj9284 Год назад

    finally in this video i get that individually div tag has no height and width thank you.

  • @francesshakinahtinarimas523
    @francesshakinahtinarimas523 3 года назад +7

    This help me a lot for my pt. Thank you so much for sharing this!

  • @veyselaksoy3470
    @veyselaksoy3470 2 года назад

    Thank you. your English is so clear

  • @mrssai2338
    @mrssai2338 3 года назад +2

    I liked the way you explained, esp. viewport part...Great!!! subscribed already!

  • @dandi2482
    @dandi2482 3 года назад

    thank you!! everything is sooo clear, love ya

  • @kennedyjunior567
    @kennedyjunior567 5 месяцев назад

    SHORT AND CONCISE VIDEO.THANKS DO MORE VIDEOS

  • @krrish7508
    @krrish7508 Год назад

    Worked for me, thanks a lot!

  • @fighter8931
    @fighter8931 Год назад

    I solved my problem from your video. thanks a lot

  • @filmbricks-stopmotion
    @filmbricks-stopmotion 2 года назад

    Tysm, this helped me so much more my project.

  • @SampaChileshe-ox1jh
    @SampaChileshe-ox1jh 6 месяцев назад

    Wonderfull explanation 👏👏👏

  • @MattiBoustedt
    @MattiBoustedt 2 года назад

    Thank you! Saved me!

  • @Filderson
    @Filderson 7 месяцев назад

    Thanks bro
    I have struggled for 2wks thanks 👍

  • @baryalaiahmad2568
    @baryalaiahmad2568 2 года назад

    Best way of teaching,thanks.

  • @aquagamer352
    @aquagamer352 10 месяцев назад

    Thank you so much, i really hope this works, i have high hopes, anyways thanks for the tuto! nice explaination and everything!! :DDD

  • @jayeshgaikwad3373
    @jayeshgaikwad3373 2 года назад

    Thank you man .. Really needed that one... Please make more n more....

  • @ObaiAtaya-b1q
    @ObaiAtaya-b1q 4 месяца назад

    i dont like to comment but this video really deservers the effort

  • @codegen2.O
    @codegen2.O 2 года назад

    Short, simple and to the point. Thanks!

  • @matthewbarhou
    @matthewbarhou 2 года назад +1

    How do I add text over the image? My h1 and p elements show text but they have a white background taking up the screen horizontally

  • @gunturmaulana6956
    @gunturmaulana6956 11 месяцев назад

    thankyou so much mate:)
    it work

  • @bahauddinchishte
    @bahauddinchishte 2 года назад

    This saves my day, Thanks a lot!

  • @makechallengeseasy6225
    @makechallengeseasy6225 Год назад

    Thank you so much dear you solved my very big problem

  • @quantumworld854
    @quantumworld854 2 года назад

    great wee video - help me lots. thank you very much

  • @joshuaola-oluwa7777
    @joshuaola-oluwa7777 2 года назад +1

    Thanks for explaining well but what if i want to put the image in the body tag

  • @themichael8767
    @themichael8767 Год назад

    Thank You very much, Sir!)

  • @STEV_-
    @STEV_- 10 месяцев назад

    thank you for the knowledge🙏🙏🙏

  • @fedeb2241
    @fedeb2241 2 года назад

    Just what i was looking for, thanks!

  • @shubhransubiswal5182
    @shubhransubiswal5182 2 года назад

    Ur the best dude keep it up👍

  • @irinamihai8645
    @irinamihai8645 2 года назад +1

    what editor are you using?

  • @kiranshinde03
    @kiranshinde03 3 года назад +1

    A very big thank you sir...😍😊🙏

  • @strycinek
    @strycinek 2 года назад

    Thanks man. It was very helpful

  • @redigirma
    @redigirma 2 года назад

    loved it, thanks!

  • @ronitbhatia1298
    @ronitbhatia1298 2 года назад

    Thank You for the tutorial...🙂

  • @OkekeFavour-g8q
    @OkekeFavour-g8q 4 месяца назад

    This was really helpful

  • @fitzysbaby2677
    @fitzysbaby2677 3 года назад

    thanks, i was using a different method which didnt like extending the image height wise, this is perfect !

  • @DinithG1008
    @DinithG1008 2 года назад

    Thanks.worked for me.!

  • @swapnil72
    @swapnil72 Год назад

    After doing all that can we add text over that background image??

  • @indranilgoswami1500
    @indranilgoswami1500 Год назад

    Thanks sir ..It helped me alot .

  • @omara1091
    @omara1091 16 дней назад

    great job 👍

  • @_Elrz
    @_Elrz 2 года назад +1

    When i put vh...image will not be display why please help me?

  • @IAMHULKSUR
    @IAMHULKSUR 2 года назад

    Helped me out a lot. Thanks buddy.

  • @rahatshahid10
    @rahatshahid10 2 года назад +1

    Thank you. It helped me a lot 😀

  • @andrewdavidov5618
    @andrewdavidov5618 3 года назад

    Wow Awesome! Thanks a bunch!

  • @krishnabhat9307
    @krishnabhat9307 2 года назад

    thanks man you saved me:) I have a major project presentation tomorrow thanks❤❤

  • @DavranbekSabirbayev
    @DavranbekSabirbayev 2 года назад +1

    You created a new div after that you wrote there , what about writing them in body section like body {}

  • @Crosbyte
    @Crosbyte 3 года назад

    Yup, imma just say that you're awesome teacher. Keep it going, subscribed!

  • @hardikawaamin7980
    @hardikawaamin7980 2 года назад

    what application do you use ? thanks for answering im trying to learn

  • @danielroach1019
    @danielroach1019 3 года назад +3

    How do you make it so text actually goes on top of the image though, instead of below it.

    • @silentt2143
      @silentt2143 2 года назад +1

      Instead of the div class, write the background-image, background-size, background-repeat, and height properties within your CSS body tag.

    • @dawnstar24
      @dawnstar24 2 года назад

      For hero image or likes, make a div, name it parent div, set it's position to relative, add any text tag and another div inside it which will contain our image. Set the image div to its maximum height and width which will be the size of the parent div and also make the position of image div to absolute, this way your text will be in middle. And you can align it using flex. Or set your text tag to absolute so you can use float or any property to set it's position. Though it's not responsive in this case so I don't really recommend it.

  • @enryu9724
    @enryu9724 Год назад

    Thanks for the explication

  • @jeremyickes5699
    @jeremyickes5699 2 года назад

    Thank you. This helped me a lot

  • @yvannacello9655
    @yvannacello9655 2 месяца назад

    Thank you so much❤

  • @Andyiinho
    @Andyiinho 3 года назад

    Thanks, mate! This helped a lot, cheers

  • @HenriethConnor-u2m
    @HenriethConnor-u2m Месяц назад

    Thank you so much.

  • @Mroggg
    @Mroggg 3 года назад +1

    How can I insert a text on it and change the opcity of the background without affects the text?

  • @siegfriedcrypto
    @siegfriedcrypto 3 года назад +1

    Great stuff. Thanks.

  • @elgaucho956
    @elgaucho956 2 года назад

    very usefull bro, thanks a lot

  • @dxdworld3666
    @dxdworld3666 2 года назад

    thanks at this time

  • @edikandesolution
    @edikandesolution Год назад

    I have problem with video link . When I copied it and run . It refuse to work. I need your help

  • @all-rounder0777
    @all-rounder0777 2 года назад

    Thanks sir this is very useful video

  • @daane996
    @daane996 Год назад

    VPCE É UM DEUS!!! VOU LEMBRAR DE VOCE SEMPRE QUE FOR DORMIR, ORBIAGDA!!!

  • @zuhaibulhassan.
    @zuhaibulhassan. 2 года назад

    Thank You so much man very helpful video 100% recommended video concise and straight to the point

  • @elgunmhrrmov7672
    @elgunmhrrmov7672 Год назад

    Çok teşekkür ederim Cem bey.

  • @Restin_J_face
    @Restin_J_face 2 года назад +1

    Does it matter if the style is defined within or ?

    • @DavranbekSabirbayev
      @DavranbekSabirbayev 2 года назад +3

      I usually write style in body section , but the most acceptable way is to write to special folder like main.css after that you should add the link to the html project

  • @katta2116
    @katta2116 2 года назад +3

    I have a question about it. When you went to mobile size, the image was showing just half. how to avoid it? like have it appear the same irrespective of whatever size the screen is?

  • @programmingworld5683
    @programmingworld5683 2 года назад

    Wonderful explanation

  • @codingwithshiku4735
    @codingwithshiku4735 2 года назад

    Thank you so much sir it helped me ❤️❤️❤️

  • @أكاديميةحمزة
    @أكاديميةحمزة 2 года назад

    perfect lesson thank u sir

  • @ballagaurav5370
    @ballagaurav5370 2 года назад

    thanks sir you solved my problem
    thanks a lot.

  • @rmdsolotov7008
    @rmdsolotov7008 Год назад

    Great video. But my picture dont display after using this process. Please help

  • @mariomeza3514
    @mariomeza3514 2 года назад

    Thank you very much sir

  • @anniemeenie
    @anniemeenie 2 года назад

    Thank you this was so concise and well explained!! You saved me so much time

  • @Duelweb
    @Duelweb 2 года назад

    This was a life saver!!! Thanks!! However, the image is not responsive ?

  • @barcalona55
    @barcalona55 2 года назад

    wow you explained it so well

  • @-atlas.crosx-553
    @-atlas.crosx-553 Год назад

    Hello, thanks for the nice helpful vid, I'm wondering if this is doable on mobile?

  • @setayishsid5296
    @setayishsid5296 2 года назад

    In which software are you coding is this video??

  • @Sabeeha441
    @Sabeeha441 Год назад

    Thank you sir 😊

  • @FrannKavila
    @FrannKavila 2 года назад

    Thank you. Is it necessary to put the width and height first? Why not go directly to?:
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;?

  • @arijkhan9173
    @arijkhan9173 2 года назад

    Can u add the margin and padding in ur css file instead of ur html file?

  • @Ig_shadowF
    @Ig_shadowF 2 года назад

    thanku now i learn how to do